<?php
if(!isset($_GET['id'])) exit();
$id=$_GET['id'];
define('ROOT_PATH','./');
require_once(ROOT_PATH.'code/bean/config.inc.php');
require_once(ROOT_PATH.'code/bean/db_config.inc.php');
$sql="select pic from question_pic where id=$id";
$res=sql_get_one($sql,__LINE__);
header("Content-type:image/gif");
echo $res['pic'];
?>